<!DOCTYPE html>
<html lang="en-US">
    <head>
        <title>Encode::HanExtra - Extra sets of Chinese encodings - metacpan.org</title>
        <link rel="preload" as="fetch" href="https://metacpan.org/account/login_status" crossorigin="anonymous" />
        <link href="https://metacpan.org/_assets/b8ccceeed47a0652049703d99326a9cea4933443.css" rel="stylesheet" type="text/css">
        <script src="https://metacpan.org/_assets/6bfedafe2d7caa915b7d84f61b45936818e3242e.js" type="text/javascript" defer></script>
        <link rel="alternate" type="application/rss+xml" title="Recent CPAN Uploads of Encode-HanExtra - MetaCPAN" href="https://metacpan.org/dist/Encode-HanExtra/releases.rss" />
        <link rel="canonical" href="./Encode::HanExtra.html" />
        <meta name="description" content="Extra sets of Chinese encodings" />
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5">
        <link rel="shortcut icon" href="https://metacpan.org/static/icons/favicon.ico">
        <link rel="apple-touch-icon" sizes="152x152" href="https://metacpan.org/static/icons/apple-touch-icon.png">
        <link rel="search" href="https://metacpan.org/static/opensearch.xml" type="application/opensearchdescription+xml" title="MetaCPAN">
        <script>
          (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
          (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
          m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
          })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

          (function(skey, ga_id){
            ga('create', ga_id, {
              siteSpeedSampleRate : 100,
              storage             : 'none',
              clientId            : localStorage.getItem(skey)
            });
            ga(function(tracker) {
              localStorage.setItem(skey, tracker.get('clientId'));
            });
            ga('send', 'pageview');
          })('ga:clientId', 'UA-27829474-1');
        </script>
<meta name="twitter:card"        content="summary" />
<meta name="twitter:url"         content="https://metacpan.org/pod/Encode::HanExtra" />
<meta name="twitter:title"       content="Encode::HanExtra" />
<meta name="twitter:description" content="Extra sets of Chinese encodings" />
<meta name="twitter:site"        content="metacpan" />
    </head>
    <body>
        <nav class="navbar navbar-default" role="navigation">
            <div class="header-logo-large hidden-xs">
              <a href="https://metacpan.org/" tabindex="0">
                <svg class="logo" aria-label="MetaCPAN">
                  <use class="logo" href="/static/images/metacpan-logo.svg#logo" />
                </svg>
              </a>
            </div>
            <div class="header-logo-icon visible-xs">
              <a href="https://metacpan.org/">
                <svg class="logo" aria-label="MetaCPAN">
                  <use class="logo" href="/static/images/metacpan-logo.svg#dots" />
                </svg>
              </a>
            </div>
            <ul class="nav navbar-nav menu-items hidden-xs hidden-sm">
              <li><a href="https://metacpan.org/about">About</a></li>
              <li><a href="https://metacpan.org/about/sponsors">Sponsor</a></li>
              <li><a href="https://grep.metacpan.org/">grep::cpan</a></li>
              <li><a href="https://metacpan.org/recent">Recent</a></li>
              <li><a href="https://metacpan.org/about/faq">FAQ</a></li>
              <li><a href="https://metacpan.org/tools">Tools</a></li>
              <li><a href="https://fastapi.metacpan.org/">API</a></li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <button type="button" class="searchbar-btn visible-xs visible-sm">
                    <i class="fa fa-search button-fa-icon"></i>
                </button>
                <form action="https://metacpan.org/search" class="searchbar-form visible-md visible-lg search-form form-horizontal">
                   <input type="hidden" name="size" id="metacpan_search-size" value="20">
                  <div class="form-group">
                      <div class="search-group">
                        <i class="fa fa-search"></i>
                        <input type="text" name="q" placeholder="Search the CPAN" size="41" autocorrect="off" autocapitalize="off" spellcheck="false" id="metacpan_search-input" class="form-control" value="">
                      </div>
                  </div>
                </form>
                    <li class="icon-slidepanel visible-xs visible-sm">
                      <button data-toggle="slidepanel" data-target=".slidepanel">
                        <span class="button-fa-icon">
                          <i class="fa fa-bars slidepanel-open"></i>
                          <i class="fa fa-times slidepanel-close"></i>
                        </span>
                      </button>
                    </li>
                <form action="https://metacpan.org/account/logout" method="POST" id="metacpan-logout"></form>
                <li class="dropdown logged_in" style="display: none;">
                    <button type="button" class="dropdown-toggle" data-toggle="dropdown">
                      <i class="fa fa-user button-fa-icon logged-in-icon" aria-hidden="true"></i>
                      <i class="fas fa-chevron-down"></i>
                    </button>
                    <ul class="dropdown-menu">
                        <li><a href="https://metacpan.org/account/identities">Identities</a></li>
                        <li><a href="https://metacpan.org/account/profile">Profile</a></li>
                        <li><a href="https://metacpan.org/account/favorite/list">Favorites</a></li>
                        <li>
                            <a href="./Encode::HanExtra.html#" type="button" onclick="$('#metacpan-logout').submit(); return false">
                              Logout
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="dropdown logged_out" style="display: none;">
                    <button type="button" class="dropdown-toggle" data-toggle="dropdown">
                      <i class="fa fa-user button-fa-icon" aria-hidden="true"></i>
                      <i class="fas fa-chevron-down"></i>
                    </button>
                    <ul class="dropdown-menu">
                        <li>
                            <a href="https://metacpan.org/login/github">
                                <i class="fab fa-github fa-fw"></i>
                                GitHub
                            </a>
                        </li>
                        <li>
                            <a href="https://metacpan.org/login/twitter">
                                <i class="fab fa-twitter fa-fw"></i>
                                Twitter
                            </a>
                        </li>
                        <li>
                            <a href="https://metacpan.org/login/google">
                                <i class="fab fa-google fa-fw"></i>
                                Google
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="dropdown logged_placeholder">
                    <button>
                      <i class="fa fa-user button-fa-icon" aria-hidden="true"></i>
                    </button>
                </li>
            </ul>
        </nav>
        <div class="page-content ">
          <!--
          <div class="top-notify-banner">
            <i class="fas fa-info-circle"></i>
          </div>
          -->
          <nav class="sidebar">
            <div class="slidepanel">
              <ul class="nav-list ">
    <li class="nav-header no-margin-top">
      <div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The date that this version of Encode-HanExtra was released.">
      <span class="relatize">10 Nov 2007 12:16:04 UTC</span>
    </li>
  <li>
    Distribution: <a href="https://metacpan.org/dist/Encode-HanExtra">Encode-HanExtra</a>
  </li>
  <li>
    Module version: 0.23
  </li>
  <li>
    <a data-keyboard-shortcut="g s" href="https://metacpan.org/dist/Encode-HanExtra/source/lib/Encode/HanExtra.pm">Source</a>
    (<a href="https://metacpan.org/dist/Encode-HanExtra/source/lib/Encode/HanExtra.pm?raw=1">raw</a>)
  </li>
  <li>
    <a data-keyboard-shortcut="g b" href="https://metacpan.org/dist/Encode-HanExtra/source/lib/Encode">Browse</a>
    (<a href="https://metacpan.org/dist/Encode-HanExtra/source/lib/Encode?raw=1">raw</a>)
  </li>
    <li>
      <a data-keyboard-shortcut="g c" href="https://metacpan.org/dist/Encode-HanExtra/changes">Changes</a>
    </li>
    <li>
      <a class="nopopup" href="https://metacpan.org/dist/Encode-HanExtra/contribute">How to Contribute</a>
    </li>
    <li>
      <a rel="noopener nofollow" data-keyboard-shortcut="g i" href="https://rt.cpan.org/Public/Dist/Display.html?Name=Encode-HanExtra">Issues</a>
      (8)
    </li>
    <li>
      <a rel="noopener nofollow" href="http://matrix.cpantesters.org/?dist=Encode-HanExtra+0.23" title="Matrix">Testers</a>
        <span title="(pass / fail / na)">(<a rel="noopener nofollow" href="https://www.cpantesters.org/distro/E/Encode-HanExtra.html?oncpan=1&amp;distmat=1&amp;version=0.23&amp;grade=2" style="color: #090">24</a> / <a rel="noopener nofollow" href="https://www.cpantesters.org/distro/E/Encode-HanExtra.html?oncpan=1&amp;distmat=1&amp;version=0.23&amp;grade=3" style="color: #900">0</a> / <a rel="noopener nofollow" href="https://www.cpantesters.org/distro/E/Encode-HanExtra.html?oncpan=1&amp;distmat=1&amp;version=0.23&amp;grade=4">0</a>)</span>
    </li>
    <li>
      <a rel="noopener nofollow" href="http://cpants.cpanauthors.org/release/AUDREYT/Encode-HanExtra-0.23">Kwalitee</a>
    </li>
    <li>
      <div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The # people with an indexing permission on Encode-HanExtra who have released something to CPAN in the last 2 years (i.e. the # people likely able to release critical fixes in a timely manner)">
      Bus factor: 1
      </div>
    </li>
    <li>
      <a rel="noopener nofollow" href="http://cpancover.com/latest/Encode-HanExtra-0.23/index.html">100.00% Coverage </a>
    </li>
    <li>
      License: mit
    </li>
    <li>
      Perl: v5.7.3
    </li>
    <li class="nav-header">Activity</li>
    <li>
<div class="activity-graph">
    <img src="https://metacpan.org/dist/Encode-HanExtra/activity.svg?res=month" />
    <div class="comment">24 month</div>
</div>
    </li>
    <li class="nav-header">Tools</li>
    <li>
      <a itemprop="downloadUrl" href="https://cpan.metacpan.org/authors/id/A/AU/AUDREYT/Encode-HanExtra-0.23.tar.gz">
      Download (<span itemprop="fileSize">1.49MB</span>)</a>
    </li>
    <li>
      <a href="https://explorer.metacpan.org/?url=%2Fmodule%2FAUDREYT%2FEncode-HanExtra-0.23%2Flib%2FEncode%2FHanExtra.pm">
        MetaCPAN Explorer
      </a>
    </li>
    <li>
      <a href="https://metacpan.org/dist/Encode-HanExtra/permissions">
        Permissions
      </a>
    </li>
    <li>
      <a href="https://metacpan.org/dist/Encode-HanExtra/releases.rss">
        Subscribe to distribution
      </a>
    </li>
    <li>
      <button class="btn btn-link" data-toggle="modal" data-target="#metacpan_install-instructions-dialog">
        Install Instructions
      </button>
    </li>
    <li>
      <form action="https://metacpan.org/search">
        <input type="hidden" name="q" value="dist:Encode-HanExtra">
        <input type="search" name="q" placeholder="Search distribution" class="form-control tool-bar-form">
        <input type="submit" style="display: none">
      </form>
    </li>
    <li>
      <form action="https://grep.metacpan.org/search">
        <input type="hidden" name="qd" value="Encode-HanExtra">
        <input type="hidden" name="source" value="metacpan">
        <input type="search" name="q" placeholder="grep distribution" class="form-control tool-bar-form">
        <input type="submit" style="display: none">
     </form>
    </li>
    <li class="version-jump">
<select onchange="document.location.href=&#39;/release/&#39;+this.value+&#39;/view/lib/Encode/HanExtra.pm&#39;" class="form-control tool-bar-form">
  <option disabled selected>Jump to version</option>
<option
  disabled
  value="AUDREYT/Encode-HanExtra-0.23"
>0.23
  (AUDREYT on 2007-11-10)</option>
<option
  
  value="AUDREYT/Encode-HanExtra-0.22"
>0.22
  (AUDREYT on 2007-11-08)</option>
<option
  
  value="AUDREYT/Encode-HanExtra-0.21"
>0.21
  (AUDREYT on 2007-08-21)</option>
<option
  
  value="AUDREYT/Encode-HanExtra-0.20"
>0.20
  (AUDREYT on 2007-08-21)</option>
<option
  
  value="AUTRIJUS/Encode-HanExtra-0.10"
>0.10
  (AUTRIJUS on 2004-11-28)</option>
<option
  
  value="AUTRIJUS/Encode-HanExtra-0.09"
>0.09
  (AUTRIJUS on 2004-11-18)</option>
<option
  
  value="AUTRIJUS/Encode-HanExtra-0.08"
>0.08
  (AUTRIJUS on 2003-05-18)</option>
<optgroup label="BackPAN">'
<option
  
  value="AUTRIJUS/Encode-HanExtra-0.07"
>0.07
  (AUTRIJUS on 2002-10-17)</option>
<option
  
  value="AUTRIJUS/Encode-HanExtra-0.06"
>0.06
  (AUTRIJUS on 2002-06-03)</option>
<option
  
  value="AUTRIJUS/Encode-HanExtra-0.05"
>0.05
  (AUTRIJUS on 2002-04-21)</option>
<option
  
  value="AUTRIJUS/Encode-HanExtra-0.04"
>0.04
  (AUTRIJUS on 2002-04-18)</option>
<option
  
  value="AUTRIJUS/Encode-HanExtra-0.03"
>0.03
  (AUTRIJUS on 2002-03-20)</option>
<option
  
  value="AUTRIJUS/Encode-HanExtra-0.02"
>0.02
  (AUTRIJUS on 2002-03-05)</option>
<option
  
  value="AUTRIJUS/Encode-HanExtra-0.01"
>0.01
  (AUTRIJUS on 2002-03-04)</option>
</optgroup>
</select>
    </li>
    <li class="version-diff">
<select onchange="document.location.href='/release/AUDREYT/Encode-HanExtra-0.23/diff/' + encodeURIComponent(this.value) + '/lib/Encode/HanExtra.pm'
" class="form-control tool-bar-form">
  <option disabled selected>Diff with version</option>
<option
  disabled
  value="AUDREYT/Encode-HanExtra-0.23"
>0.23
  (AUDREYT on 2007-11-10)</option>
<option
  
  value="AUDREYT/Encode-HanExtra-0.22"
>0.22
  (AUDREYT on 2007-11-08)</option>
<option
  
  value="AUDREYT/Encode-HanExtra-0.21"
>0.21
  (AUDREYT on 2007-08-21)</option>
<option
  
  value="AUDREYT/Encode-HanExtra-0.20"
>0.20
  (AUDREYT on 2007-08-21)</option>
<option
  
  value="AUTRIJUS/Encode-HanExtra-0.10"
>0.10
  (AUTRIJUS on 2004-11-28)</option>
<option
  
  value="AUTRIJUS/Encode-HanExtra-0.09"
>0.09
  (AUTRIJUS on 2004-11-18)</option>
<option
  
  value="AUTRIJUS/Encode-HanExtra-0.08"
>0.08
  (AUTRIJUS on 2003-05-18)</option>
<optgroup label="BackPAN">'
<option
  
  value="AUTRIJUS/Encode-HanExtra-0.07"
>0.07
  (AUTRIJUS on 2002-10-17)</option>
<option
  
  value="AUTRIJUS/Encode-HanExtra-0.06"
>0.06
  (AUTRIJUS on 2002-06-03)</option>
<option
  
  value="AUTRIJUS/Encode-HanExtra-0.05"
>0.05
  (AUTRIJUS on 2002-04-21)</option>
<option
  
  value="AUTRIJUS/Encode-HanExtra-0.04"
>0.04
  (AUTRIJUS on 2002-04-18)</option>
<option
  
  value="AUTRIJUS/Encode-HanExtra-0.03"
>0.03
  (AUTRIJUS on 2002-03-20)</option>
<option
  
  value="AUTRIJUS/Encode-HanExtra-0.02"
>0.02
  (AUTRIJUS on 2002-03-05)</option>
<option
  
  value="AUTRIJUS/Encode-HanExtra-0.01"
>0.01
  (AUTRIJUS on 2002-03-04)</option>
</optgroup>
</select>
    </li>

    <li>
<ul class="dependencies">
  <li class="nav-header">Dependencies</li>
  <li><a href="https://metacpan.org/pod/Encode" title="Encode" class="ellipsis">Encode</a></li>
  <li><i class="ttip" title="dynamic_config enabled">and possibly others</i></li>
  <li>
    <hr>
  </li>
  <li>
    <a href="https://metacpan.org/module/Encode::HanExtra/requires">Reverse dependencies</a>
  </li>
  <li>
    <a href="http://deps.cpantesters.org/?module=Encode%3A%3AHanExtra">CPAN Testers List</a>
  </li>
  <li>
    <a href="https://cpandeps.grinnz.com/?dist=Encode-HanExtra">Dependency graph</a>
  </li>
</ul>
    </li>
    <li class="nav-header">Permalinks</li>
    <li>
      <a href="https://metacpan.org/release/AUDREYT/Encode-HanExtra-0.23/view/lib/Encode/HanExtra.pm">This version</a>
    </li>
    <li>
      <a href="./Encode::HanExtra.html">Latest version</a>
    </li>
    <li>
<div class="plussers">
<div class="nav-header">++ed by:</div>
<div>
<a class="display-all" href="https://metacpan.org/author/MICHIELB"><img src="https://www.gravatar.com/avatar/c35b97da3835376f2d804b022121f962?d=identicon&amp;s=20" title="MICHIELB" alt="MICHIELB"></a>
</div>
<!-- Display counts of plussers-->
<div>
    <a href="https://metacpan.org/dist/Encode-HanExtra/plussers">1 PAUSE user</a>
</div>
<div>
    2 non-PAUSE users
</div>
</div>
    </li>
    <li>
<div id="metacpan_contributors">
  <div>
    <button class="btn-link"
      onclick="$(this).hide(); $('#metacpan_contributors ul').slideDown(); return false;"
    >and 1 contributors</button>
  </div>
  <ul style="display: none">
    <li class="contributor"
      data-contrib-email="audreyt@audreyt.org"
    >
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/d41d8cd98f00b204e9800998ecf8427e?d=identicon&amp;s=20" />
      Audrey Tang
    </li>
  </ul>
</div>
    </li>
              </ul>
            </div>
          </nav>
          <div class="content-navigation">
<div class="breadcrumbs">
  <span>
    <a data-keyboard-shortcut="g a" rel="author" href="https://metacpan.org/author/AUDREYT" class="author-name">☻ 唐鳳 ☺</a>
  </span>
  <span>&nbsp;/&nbsp;</span>
  <div class="release dist-release status-latest maturity-released">
    <span class="dropdown"><b class="caret"></b></span>
<select onchange="document.location.href=&#39;/release/&#39;+this.value+&#39;/view/lib/Encode/HanExtra.pm&#39;" class="">
<option
  selected
  value="AUDREYT/Encode-HanExtra-0.23"
>0.23
  (AUDREYT on 2007-11-10)</option>
<option
  
  value="AUDREYT/Encode-HanExtra-0.22"
>0.22
  (AUDREYT on 2007-11-08)</option>
<option
  
  value="AUDREYT/Encode-HanExtra-0.21"
>0.21
  (AUDREYT on 2007-08-21)</option>
<option
  
  value="AUDREYT/Encode-HanExtra-0.20"
>0.20
  (AUDREYT on 2007-08-21)</option>
<option
  
  value="AUTRIJUS/Encode-HanExtra-0.10"
>0.10
  (AUTRIJUS on 2004-11-28)</option>
<option
  
  value="AUTRIJUS/Encode-HanExtra-0.09"
>0.09
  (AUTRIJUS on 2004-11-18)</option>
<option
  
  value="AUTRIJUS/Encode-HanExtra-0.08"
>0.08
  (AUTRIJUS on 2003-05-18)</option>
<optgroup label="BackPAN">'
<option
  
  value="AUTRIJUS/Encode-HanExtra-0.07"
>0.07
  (AUTRIJUS on 2002-10-17)</option>
<option
  
  value="AUTRIJUS/Encode-HanExtra-0.06"
>0.06
  (AUTRIJUS on 2002-06-03)</option>
<option
  
  value="AUTRIJUS/Encode-HanExtra-0.05"
>0.05
  (AUTRIJUS on 2002-04-21)</option>
<option
  
  value="AUTRIJUS/Encode-HanExtra-0.04"
>0.04
  (AUTRIJUS on 2002-04-18)</option>
<option
  
  value="AUTRIJUS/Encode-HanExtra-0.03"
>0.03
  (AUTRIJUS on 2002-03-20)</option>
<option
  
  value="AUTRIJUS/Encode-HanExtra-0.02"
>0.02
  (AUTRIJUS on 2002-03-05)</option>
<option
  
  value="AUTRIJUS/Encode-HanExtra-0.01"
>0.01
  (AUTRIJUS on 2002-03-04)</option>
</optgroup>
</select>
    <a data-keyboard-shortcut="g d" class="release-name" href="https://metacpan.org/dist/Encode-HanExtra">Encode-HanExtra-0.23</a>
  </div>
<span class="river-gauge-gauge">
  <svg width="24px"
       height="15px"
       version="1.1"
       xmlns="http://www.w3.org/2000/svg"
       xmlns:xlink="http://www.w3.org/1999/xlink">

    <g>
      <title>        River stage one &#10;
          • 1 direct dependent &#10;          • 1 total dependent
      </title>

      <rect x="0"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="5"  y="0" width="4" height="15" fill="#e4e2e2" />
      <rect x="10"  y="0" width="4" height="15" fill="#e4e2e2" />
      <rect x="15"  y="0" width="4" height="15" fill="#e4e2e2" />
      <rect x="20"  y="0" width="4" height="15" fill="#e4e2e2" />
    </g>
  </svg>

</span>
<div id="Encode-HanExtra-fav" class="logged_in">
<form action="https://metacpan.org/account/favorite/add" style="display: inline" onsubmit="return favDistribution(this)">
    <input type="hidden" name="remove" value="0">
    <input type="hidden" name="release" value="Encode-HanExtra-0.23">
    <input type="hidden" name="author" value="AUDREYT">
    <input type="hidden" name="distribution" value="Encode-HanExtra">
    <button type="submit" class="favorite highlight"><span>3</span> ++</button>
</form>
</div>
<div class="logged_out">
<a href="./Encode::HanExtra.html" onclick="alert('Please sign in to add favorites'); return false" class="favorite highlight">
<span>3</span> ++</a>
</div>
   / <span>Encode::HanExtra</span>
</div>
          </div>
          <main class="content">


<nav class="toc">
  <div class="toc-header"><strong>Contents</strong></div>
<ul>
  <li><a href="./Encode::HanExtra.html#NAME">NAME</a></li>
  <li><a href="./Encode::HanExtra.html#VERSION">VERSION</a></li>
  <li><a href="./Encode::HanExtra.html#SYNOPSIS">SYNOPSIS</a></li>
  <li><a href="./Encode::HanExtra.html#DESCRIPTION">DESCRIPTION</a></li>
  <li><a href="./Encode::HanExtra.html#ENCODINGS">ENCODINGS</a></li>
  <li><a href="./Encode::HanExtra.html#NOTES">NOTES</a></li>
  <li><a href="./Encode::HanExtra.html#SEE-ALSO">SEE ALSO</a></li>
  <li><a href="./Encode::HanExtra.html#ACKNOWLEDGEMENTS">ACKNOWLEDGEMENTS</a></li>
  <li><a href="./Encode::HanExtra.html#AUTHORS">AUTHORS</a></li>
  <li><a href="./Encode::HanExtra.html#COPYRIGHT">COPYRIGHT</a>
    <ul>
      <li><a href="./Encode::HanExtra.html#The-%22MIT%22-License">The &quot;MIT&quot; License</a></li>
    </ul>
  </li>
</ul></nav>
<div class="pod anchors">
<h1 id="NAME">NAME</h1>

<p>Encode::HanExtra - Extra sets of Chinese encodings</p>

<h1 id="VERSION">VERSION</h1>

<p>This document describes version 0.23 of Encode::HanExtra, released November 10, 2007.</p>

<h1 id="SYNOPSIS">SYNOPSIS</h1>

<pre><code>    use Encode;

    # Traditional Chinese
    $euc_tw = encode(&quot;euc-tw&quot;, $utf8);   # loads Encode::HanExtra implicitly
    $utf8   = decode(&quot;euc-tw&quot;, $euc_tw); # ditto

    # Simplified Chinese
    $gb18030 = encode(&quot;gb18030&quot;, $utf8);    # loads Encode::HanExtra implicitly
    $utf8    = decode(&quot;gb18030&quot;, $gb18030); # ditto</code></pre>

<h1 id="DESCRIPTION">DESCRIPTION</h1>

<p>Perl 5.7.3 and later ships with an adequate set of Chinese encodings, including the commonly used <code>CP950</code>, <code>CP936</code> (also known as <code>GBK</code>), <code>Big5</code> (alias for <code>Big5-Eten</code>), <code>Big5-HKSCS</code>, <code>EUC-CN</code>, <code>HZ</code>, and <code>ISO-IR-165</code>.</p>

<p>However, the numbers of Chinese encodings are staggering, and a complete coverage will easily increase the size of perl distribution by several megabytes; hence, this CPAN module tries to provide the rest of them.</p>

<p>If you are using Perl 5.8 or later, <a href="https://metacpan.org/pod/Encode::CN">Encode::CN</a> and <a href="https://metacpan.org/pod/Encode::TW">Encode::TW</a> will automatically load the extra encodings for you, so there&#39;s no need to explicitly write <code>use Encode::HanExtra</code> if you are using one of them already.</p>

<h1 id="ENCODINGS">ENCODINGS</h1>

<p>This version includes the following encoding tables:</p>

<pre><code>  Canonical   Alias                             Description
  -----------------------------------------------------------------------------
  big5-1984   /\b(tca-)?big5-?(19)?84$/i        TCA&#39;s original Big5-1984
  big5-2003   /\b(cmex-)?big5-?(20)?03$/i       Big5-2003 (national standard)
  big5ext     /\b(cmex-)?big5-?e(xt)?$/i        CMEX&#39;s Big5e Extension
  big5plus    /\b(cmex-)?big5-?p(lus)?$/i       CMEX&#39;s Big5+ Extension
              /\b(cmex-)?big5\+$/i
  cccii       /\b(ccag-)?cccii$/i               Chinese Character Code for
                                                Information Interchange
  cns11643-1  /\bCNS[-_ ]?11643[-_]1$/i         Taiwan&#39;s CNS map, plane 1
  cns11643-2  /\bCNS[-_ ]?11643[-_]2$/i         Taiwan&#39;s CNS map, plane 2
  cns11643-3  /\bCNS[-_ ]?11643[-_]3$/i         Taiwan&#39;s CNS map, plane 3
  cns11643-4  /\bCNS[-_ ]?11643[-_]4$/i         Taiwan&#39;s CNS map, plane 4
  cns11643-5  /\bCNS[-_ ]?11643[-_]5$/i         Taiwan&#39;s CNS map, plane 5
  cns11643-6  /\bCNS[-_ ]?11643[-_]6$/i         Taiwan&#39;s CNS map, plane 6
  cns11643-7  /\bCNS[-_ ]?11643[-_]7$/i         Taiwan&#39;s CNS map, plane 7
  cns11643-f  /\bCNS[-_ ]?11643[-_]f$/i         Taiwan&#39;s CNS map, plane F
  euc-tw      /\beuc.*tw$/i                     EUC (Extended Unix Character)
              /\btw.*euc$/i
  gb18030     /\bGB[-_ ]?18030$/i               GBK with Traditional Characters
  unisys      /\bunisys$/i                      Unisys Traditional Chinese
  unisys-sosi1                                  Unisys SOSI1 transport encoding
  unisys-sosi2                                  Unisys SOSI2 transport encoding</code></pre>

<p>Detailed descriptions are as follows:</p>

<dl>

<dt id="BIG5-1984"><a id="BIG5"></a>BIG5-1984</dt>
<dd>

<p>This is the original Big5 encoding made by TCA Taiwan.</p>

</dd>
<dt id="BIG5-2003"><a id="BIG51"></a>BIG5-2003</dt>
<dd>

<p>This revised encoding is now national standard, as an appendix of CNS11643.</p>

</dd>
<dt id="BIG5PLUS">BIG5PLUS</dt>
<dd>

<p>This encoding, while not heavily used, is an attempt to bring all Taiwan&#39;s conflicting internal-use encodings together, and fit it as an extension to the widely-deployed Big5 range, by CMEX Taiwan.</p>

</dd>
<dt id="BIG5EXT">BIG5EXT</dt>
<dd>

<p>The CMEX&#39;s second (and less ambitious) try at unifying the most commonly used characters not covered by Big5, while not polluting out of the 94x94 arragement like BIG5PLUS did.</p>

</dd>
<dt id="CCCII">CCCII</dt>
<dd>

<p>The earliest (and most sophisticated) Traditional Chinese encoding, with a three-byte raw character map, made in 1980 by the Chinese Character Analysis Group (CCAG), used mostly in library systems.</p>

</dd>
<dt id="EUC-TW"><a id="EUC"></a>EUC-TW</dt>
<dd>

<p>The EUC transport version of <code>CNS11643</code> (planes 1-7), the comprehensive character set used by the Taiwan government.</p>

</dd>
<dt id="CNS11643-*"><a id="CNS11643"></a>CNS11643-*</dt>
<dd>

<p>The raw character map extracted from the Unihan database, including the plane F which wasn&#39;t included in <code>EUC-TW</code>.</p>

</dd>
<dt id="GB18030">GB18030</dt>
<dd>

<p>An extension to GBK, this encoding lists most Han characters (both simplified and traditional), as well as some other encodings used by other peoples in China.</p>

</dd>
<dt id="UNISYS">UNISYS</dt>
<dd>

<p>Unisys System&#39;s internal Chinese mapping.</p>

</dd>
</dl>

<h1 id="NOTES">NOTES</h1>

<p>If you are looking for ways to transliterate between Simplified and Traditional Chinese, please take a look at <a href="https://metacpan.org/pod/Encode::HanConvert">Encode::HanConvert</a>. Note that the direct mapping via Unicode is lossy, and usually doesn&#39;t work at all.</p>

<p>Please send me suggestions if you want to see more encoding added, such as <code>BIG5-GCCS</code> (superseded by <code>BIG5-HKSCS</code>). Other suggestions are welcome, too.</p>

<h1 id="SEE-ALSO"><a id="SEE"></a>SEE ALSO</h1>

<p><a href="https://metacpan.org/pod/Encode">Encode</a>, <a href="https://metacpan.org/pod/Encode::HanConvert">Encode::HanConvert</a></p>

<h1 id="ACKNOWLEDGEMENTS">ACKNOWLEDGEMENTS</h1>

<p>Some of the maps here are generated from GNU libiconv&#39;s test files, with kind permission from Bruno Haible.</p>

<p>Map for <code>BIG5PLUS</code> is generated from the <i>BIG52UCS.TXT</i> file, courtesy of CMEX Taiwan (Chinese Microcomputer Extended Foundation, <a href="http://www.cmex.org.tw/">http://www.cmex.org.tw/</a>).</p>

<p>Map for <code>BIG5-1984</code> is supplied by imacat.</p>

<p>Map for <code>CCCII</code> is supplied by the Koha Taiwan project.</p>

<h1 id="AUTHORS">AUTHORS</h1>

<p>Audrey Tang &lt;audreyt@audreyt.org&gt;</p>

<h1 id="COPYRIGHT">COPYRIGHT</h1>

<p>Copyright 2002-2007 by Audrey Tang &lt;audreyt@audreyt.org&gt;.</p>

<p>This software is released under the MIT license cited below.</p>

<h2 id="The-&quot;MIT&quot;-License"><a id="The"></a><a id="The--MIT--License"></a>The &quot;MIT&quot; License</h2>

<p>Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the &quot;Software&quot;), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:</p>

<p>The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.</p>

<p>THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.</p></div>

<div id="metacpan_install-instructions-dialog" class="modal fade">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title">Module Install Instructions</h4>
      </div>
      <div class="modal-body">
        <p>To install Encode::HanExtra, copy and paste the appropriate command in to your terminal.</p>
        <p><a href="https://metacpan.org/dist/App-cpanminus/view/bin/cpanm">cpanm</a></p>
        <pre><code>cpanm Encode::HanExtra</code></pre>
        <p><a href="https://metacpan.org/pod/CPAN">CPAN shell</a></p>
        <pre><code>perl -MCPAN -e shell
install Encode::HanExtra</code></pre>
        <p>For more information on module installation, please visit <a href="https://www.cpan.org/modules/INSTALL.html">the detailed CPAN module installation guide</a>.</p>
      </div>
      <div class="modal-footer">
        <a href="./Encode::HanExtra.html#" data-dismiss="modal" class="btn">Close</a>
      </div>
    </div>
  </div>
</div>
          </main>
          <div class="content-pagination">
          </div>
        </div>
        <footer class="footer">
          <div class="footer-container">
            <div class="footer-social">
              <div class="footer-link footer-logo">
                <a href="https://metacpan.org/">
                  <img src="https://metacpan.org/static/images/metacpan-logo.svg" alt="MetaCPAN" />
                </a>
              </div>
              <a class="footer-social-link" href="https://github.com/metacpan">
                <i class="fab fa-github-square"></i>
              </a>
              <a class="footer-social-link" href="https://fosstodon.org/@metacpan">
                <i class="fab fa-mastodon"></i>
              </a>
            </div>
            <div class="footer-links">
              <div class="footer-link">
                  <a href="https://metacpan.org/about">About</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/about/sponsors">Sponsor</a>
              </div>
              <div class="footer-link">
                  <a href="https://grep.metacpan.org">grep::cpan</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/recent">Recent</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/about/faq">FAQ</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/tools">Tools</a>
              </div>
              <div class="footer-link">
                  <a href="https://fastapi.metacpan.org/">API</a>
              </div>
              <div class="footer-link">
                  <a href="https://www.perl.org/">Perl.org</a>
              </div>
            </div>
            <div class="footer-sponsors">
              <a class="footer-sponsor-link" target="_blank" href="https://www.bytemark.co.uk/" rel="noopener">
                <img class="footer-sponsor-bytemark" src="https://metacpan.org/static/images/sponsors/bytemark_logo.svg" alt="Bytemark logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://www.liquidweb.com/" rel="noopener">
                <img class="footer-sponsor-liquidweb" src="https://metacpan.org/static/images/sponsors/liquidweb_logo.png" alt="liquidweb logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://deriv.com/careers/" rel="noopener">
                <img class="footer-sponsor-deriv" src="https://metacpan.org/static/images/sponsors/deriv.svg" alt="Deriv logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://geocode.xyz" rel="noopener">
                <img class="footer-sponsor-geocode" src="https://metacpan.org/static/images/sponsors/geocodelogo.svg" alt="Geocode logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://www.fastly.com/" rel="noopener">
                <img class="footer-sponsor-fastly" src="https://metacpan.org/static/images/sponsors/fastly_logo.svg" alt="Fastly logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://opencagedata.com" rel="noopener">
                <img class="footer-sponsor-opencage" src="https://metacpan.org/static/images/sponsors/open-cage.svg" alt="OpenCage logo">
              </a>
            </div>
          </div>
        </footer>
        <div class="modal fade" tabindex="-1" role="dialog" id="metacpan_keyboard-shortcuts">
          <div class="modal-dialog">
            <div class="modal-content">
              <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4 class="modal-title">Keyboard Shortcuts</h4>
              </div>
              <div class="modal-body row">
<div class="col-md-6">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>Global</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>s</kbd>
        </td>
        <td>Focus search bar</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>?</kbd>
        </td>
        <td>Bring up this help dialog</td>
      </tr>
    </tbody>
  </table>

  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>GitHub</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>p</kbd>
        </td>
        <td>Go to pull requests</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>i</kbd>
        </td>
        <td>go to github issues (only if github is preferred repository)</td>
      </tr>
    </tbody>
  </table>
</div>

<div class="col-md-6">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>POD</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>a</kbd>
        </td>
        <td>Go to author</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>c</kbd>
        </td>
        <td>Go to changes</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>i</kbd>
        </td>
        <td>Go to issues</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>d</kbd>
        </td>
        <td>Go to dist</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>r</kbd>
        </td>
        <td>Go to repository/SCM</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>s</kbd>
        </td>
        <td>Go to source</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>b</kbd>
        </td>
        <td>Go to file browse</td>
      </tr>

    </tbody>
  </table>
</div>

<div class="col-md-12">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>Search terms</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><em>module:</em> (e.g. <a href="https://metacpan.org/search?q=module%3APlugin">module:Plugin</a>)</td>
      </tr>
      <tr>
        <td><em>distribution:</em> (e.g. <a href="https://metacpan.org/search?q=distribution%3ADancer+auth">distribution:Dancer auth</a>)</td>
      </tr>
      <tr>
        <td><em>author:</em> (e.g. <a href="https://metacpan.org/search?q=author%3ASONGMU+Redis">author:SONGMU Redis</a>)</td>
      </tr>
      <tr>
        <td><em>version:</em> (e.g. <a href="https://metacpan.org/search?q=version%3A1.00">version:1.00</a>)</td>
      </tr>
    </tbody>
  </table>
</div>
              </div>
              <div class="modal-footer"></div>
            </div>
          </div>
        </div>
    </body>
</html>
